-- CALC_EVIL_ITEMS_EXP

-- 雕像物品经验
return function(items)
    local exp = 0;

    if #items == 1 then
        exp = exp + EvilStatueM.queryItem(items[1], "exp");
    elseif #items == 2 then
        if items[1] == items[2] then
            exp = exp + EvilStatueM.queryItem(items[1], "exp2");
        else
            exp = exp + EvilStatueM.queryItem(items[1], "exp");
            exp = exp + EvilStatueM.queryItem(items[2], "exp");
        end
    elseif #items == 3 then
        if items[1] == items[2] and items[2] == items[3] then
            exp = exp + EvilStatueM.queryItem(items[1], "exp3");
        elseif items[1] == items[2] then
            exp = exp + EvilStatueM.queryItem(items[1], "exp2");
            exp = exp + EvilStatueM.queryItem(items[3], "exp");
        elseif items[1] == items[3] then
            exp = exp + EvilStatueM.queryItem(items[1], "exp2");
            exp = exp + EvilStatueM.queryItem(items[2], "exp");
        elseif items[2] == items[3] then
            exp = exp + EvilStatueM.queryItem(items[2], "exp2");
            exp = exp + EvilStatueM.queryItem(items[1], "exp");
        else
            for _, item in pairs(items) do
                exp = exp + EvilStatueM.queryItem(item, "exp");
            end
        end
    else
        exp = exp + #items;
    end

    -- 元素亲和状态（百分比加成献祭exp奖励）
    local prop = PropM.combine(ME.user, "addition_sacrifice", 1);
    exp = PropM.apply(prop, exp);

    return exp;
end